home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gQuitButtonPressed
- if gQuitButtonPressed = -1 then
- exit
- end if
- set buttonClicked to the clickOn - 4
- if ((buttonClicked = 21) or (buttonClicked = 22)) and (gQuitButtonPressed > 9) then
- exit
- end if
- repeat while the mouseDown = 1
- end repeat
- if rollOver(buttonClicked) = 1 then
- repeat with counter = 19 to 22
- set the visible of sprite counter to 0
- end repeat
- set the visible of sprite buttonClicked to 1
- if gQuitButtonPressed > 9 then
- set gQuitButtonPressed to buttonClicked - 9
- else
- set gQuitButtonPressed to buttonClicked - 18
- end if
- updateStage()
- end if
- end
-